<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Demo</title>
    <!-- 请勿在项目正式环境中引用该 layui.css 地址 -->
    <link href="//unpkg.com/layui@2.9.21/dist/css/layui.css" rel="stylesheet">
</head>
<body>

<h3 style="margin-bottom: 15px;">请求示例</h3>

<div class="layui-tab layui-tab-card">
    <ul class="layui-tab-title">
        <li class="layui-this">bash</li>
        <li>javascript</li>
        <li>c++</li>
        <li>php</li>
        <li>python</li>
        <li>java</li>
        <li>go</li>
    </ul>
    <div class="layui-tab-content" >
        <div class="layui-tab-item layui-show">
            <pre class="layui-code code-bash" lay-options="{}" style="border: none;">
# 设置你的token变量
token="YOUR_TOKEN_HERE"
# 设置JSON数据
json_data='{"key1":"value1", "key2":"value2"}'
# 发送POST请求
curl -X POST -H "Authorization: Bearer $token" -H "Content-Type: application/json" -d "$json_data" http://your.api/endpoint
            </pre>
        </div>
        <div class="layui-tab-item">内容-2</div>
        <div class="layui-tab-item">内容-3</div>
        <div class="layui-tab-item">内容-4</div>
        <div class="layui-tab-item">内容-5</div>
    </div>
</div>

<!-- 请勿在项目正式环境中引用该 layui.js 地址 -->
<script src="//unpkg.com/layui@2.9.21/dist/layui.js"></script>

</body>
</html>